package com.qd.panda.mapper.card;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qd.common.panda.domain.entity.card.third.sync.ThirdPartyListDTO;
import com.qd.panda.model.ThirdPartyList;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 劵列表
 *
 * @author sjk
 */
public interface ThirdPartyListMapper extends BaseMapper<ThirdPartyList> {
    /**
     * 查询未分配的劵列表
     *
     * @param thirdParty     第三方券商
     * @param discountAmount 优惠金额
     * @param quantity       劵数量
     * @return 券列表
     */
    List<ThirdPartyListDTO> getThirdCouponCodeList(@Param("thirdParty") String thirdParty, @Param("discountAmount") BigDecimal discountAmount, @Param("quantity") Integer quantity);
}